var mongoose = require('mongoose');

mongoose.connect('mongodb://localhost:27017/StudentManagementSystem',{},(e)=>{
   if(e){
       console.log(e);
       console.log("连接失败");
       return;
   }
   console.log("链接成功");
});

//导出mongoose
module.exports=mongoose;